import axios from 'axios'
import { request } from '@/utils/request'

//新闻首页数据
export function GetNewsList(data) {
    const url = request.baseURL + '/api/wap/News/PagedList';
    return axios.get(url, {
        params: data
    }).then((res) => {
        return Promise.resolve(res.data);
    });
};
// 新闻数据详情
export function GetDetail(id) {
    const url = request.baseURL + '/api/wap/News/Detail';
    const data = {
        id:id,
        callback: 'callback'
    };
    return axios.get(url, {
        params: data
    }).then((res) => {
        return Promise.resolve(res.data);
    });
};

